package Rectangle;

public class Rectangle {
    double length;
    double width;
    public Rectangle(int length,int width){
        this.length=length;
        this.width=width;

    }
    public double getArea(int length,int width){
        return this.width*this.length;
    }
    public double getPer(int length,int width){
        return 2*(this.length+this.width);
    }
    public void showAll(){
        System.out.println("长"+this.length+","+this.width);
        System.out.println("面积是"+this.length*this.width);
        System.out.println("周长是"+2*(this.length+this.width));
    }

}
